package com.dragon.logical.service.finance;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.repository.entity.AddPageData;
import com.dragon.repository.entity.Expenses;
import com.dragon.repository.entity.Reimbursement;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 报销申请表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-07-03
 */
public interface IReimbursementService extends IService<Reimbursement> {

    Page<Reimbursement> reimburseList(Integer page, Integer limit, String search, Integer status, Integer paymentStatus, String startTime, String endTime);

    AddPageData addReimburse(Reimbursement reimbursement);

    void updateReimburse(Reimbursement reimbursement);

    /**
     * 报销付款操作
     * @param reimbursement
     */
    void reimbursePayment(Reimbursement reimbursement);

    void deleteReimburse(Integer id);

    Reimbursement selectInfoById(Integer id);

    Map<String,Object> selectListStatistics();

    /**
     * 报销类型占比
     * @param time
     * @return
     */
    List<Expenses> reimburseTypePercentage(String time);

    /**
     * 报销月总额统计
     * @param time
     * @return
     */
    LinkedHashMap<String, Object> reimburseMonthlyStatistics(String time);
}
